//
//  QMUILabel+LHAdd.h
//  lanfanglian
//
//  Created by 兰江 on 2020/11/17.
//  Copyright © 2020 lanjian. All rights reserved.
//

#import "QMUILabel.h"



@interface QMUILabel (LHAdd)

/**
 *  字间距
 */
@property (nonatomic,assign)CGFloat characterSpace;

/**
 *  行间距
 */
@property (nonatomic,assign)CGFloat lineSpace;

/**
 *  关键字
 */
@property (nonatomic,copy)NSString *keywords;
@property (nonatomic,strong)UIFont *keywordsFont;
@property (nonatomic,strong)UIColor *keywordsColor;

/**
 *  下划线
 */
@property (nonatomic,copy)NSString *underlineStr;
@property (nonatomic,strong)UIColor *underlineColor;

/**
 *  计算label宽高，必须调用
 *
 *  @param maxWidth 最大宽度
 *
 *  @return label的size
 */
- (CGSize)getLableSizeWithMaxWidth:(CGFloat)maxWidth;


/**
 *  根据最大高度计算label宽，高
 *
 *  @param maxHeight 最大宽度
 *
 *  @return size
 */
- (CGSize)getLableSizeWithAttStr:(NSAttributedString *)attStr
                       maxHeight:(CGFloat)maxHeight ;

+(QMUILabel*)labelWithFont:(UIFont*)font textColor:(UIColor*)textColor;
+(QMUILabel*)labelWithText:(NSString*)text font:(UIFont*)font textColor:(UIColor*)textColor;
+(QMUILabel*)labelWithFont:(UIFont*)font textColor:(UIColor*)textColor textAligment:(NSTextAlignment)alignment;

@end


